package chapter11;

import java.util.Arrays;
import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/1/9 23:13
 */

class Snow {

}

class Powder extends Snow {

}

class Light extends Powder {

}

class Heavy extends Powder {

}

public class AsListInterface {
    public static void main(String[] args) {
        List<Snow> snows = Arrays.asList(new Light(), new Heavy());
        System.out.println(snows);
    }
}
